package com.zxy.common.result;

import lombok.Data;

/**
 * 分页查询结果
 */
@Data
public class PageResult {
    private Long total; //总记录数
    private Object rows; //当前页数据
    private Object params; //查询参数

    public PageResult(Long total, Object rows) {
        this.total = total;
        this.rows = rows;
        this.params = null;
    }

    public PageResult(Long total, Object rows, Object params) {
        this.total = total;
        this.rows = rows;
    }
    // 添加 getter 方法
    public Long getTotal() {
        return total;
    }

    public Object getRows() {
        return rows;
    }

    public Object getParams() {
        return params;
    }
}